package com.though.utils.encrypt;

import org.apache.commons.lang3.StringUtils;

import java.util.HashMap;
import java.util.Map;

public class AppKey {

	
	private static Map<String, String> apiKeyMap = new HashMap<String, String>();
	
	static {
		apiKeyMap.put("goods_android", "77938A22512F3A05F180A9142280786B"); // 进货-android
		apiKeyMap.put("goods_iphone", "3D49257E25A04D16D97A3F024AA718A1"); // 进货-iphone
		apiKeyMap.put("shop_android", "4CDB0AA8F7E0D7BF70ECB916CF37D896"); // 门店-android
		apiKeyMap.put("shop_iphone", "F3DC718A69B558682E64D48B84BEBD40"); // 门店-iphone
	}
	
	
	public static String getAppKey(String key) {
		if (StringUtils.isBlank(key)) return StringUtils.EMPTY;
		String value = apiKeyMap.get(key);
		return StringUtils.isBlank(value) ? StringUtils.EMPTY : value;
	}
}
